CC = g++
CFLAGS = -c

CXX = g++ -g -Wall
CXXFLAGS =  -D_LINUX_ # -DHAS_SS_NAMESPACE

INCDIR = 
LIBS = 

DEBUG=y

ifeq ($(DEBUG),y)
CFLAGS += -g  -D_DEBUG
CXXFLAGS += -g  -D_DEBUG
else
CFLAGS += -O3 -DNDEBUG
endif


%.o: %.c 
	$(CC) $(CFLAGS) -c -o $@ $^

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c -o $@ $^
